package com.chen.demo.javase.patterms;

import com.chen.demo.javase.patterms.entity.Fruit;
import com.chen.demo.javase.patterms.fatory.simple.StaticFactory;
import com.chen.demo.javase.patterms.template.OtherPayShopping;
import com.chen.demo.javase.patterms.template.ShoppingCart;

import java.util.Arrays;
import java.util.List;

/**
 * @author chenhongwei
 * @date 2020/3/29 18:58
 **/
public class AbstractShopClient {

    protected static ShoppingCart cart;

    static {
        List<Fruit> products = Arrays.asList(StaticFactory.getFruitApple(), StaticFactory.getFruitBanana(), StaticFactory.getFruitOrange());
        cart = new OtherPayShopping(products);
    }
}
